/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package shared;

import java.util.*;

/**
 *
 * @author eros
 */
public class TimeHolder implements Runnable{

    boolean blLoop = true;
    Long time ;

   

    public TimeHolder(Long tempo) {
        this.time = tempo;
        Thread t = new Thread(this);
        t.start();
    }


  
    public void run() {
       try{

           Thread.sleep(time);
           this.blLoop = true;
       }catch(InterruptedException exp){

       }
    }

    public boolean retorno(){
        return blLoop;
    }



    public static boolean giveMeTime(Integer tempo){
                    TimeHolder t = new TimeHolder(new Long(tempo));
                     return t.retorno();
    }


   

}
